package com.note.common.constants;

/**
 * @Package：com.note.user.constants
 * @Name：ResponseCodeConstants
 * @Author：热伊木
 * @Email：uyevan@163.com
 * @Date：2023-12-12-9:38
 * @Description：内部服务间状态码定义
 */
public class ResponseCodeConstants {

    /*Exception异常相关ResponseCode状态码*/
    public static final int ERROR = -1;
    public static final int FAIL = -1;

    /*参数校验相关ResponseCode状态码*/
    public static final int BAD_REQUEST = 400; // 请求参数有误或缺失


    /*登录相关ResponseCode状态码*/
    public static final int LOGIN_SUCCESS = 200; // 登录成功
    public static final int USER_NOT_FOUND = 404; // 用户未找到
    public static final int WRONG_PASSWORD = 401; // 密码错误
    public static final int USER_BANNED = 403; // 用户被禁止
    public static final int LOGIN_FAIL = 500; // 登录失败

    /*注册相关ResponseCode状态码*/
    public static final int REGISTER_SUCCESS = 201; // 注册成功
    public static final int USERNAME_ALREADY_EXISTS = 409; // 注册失败
    public static final int REGISTER_FAIL = 500; // 注册失败


    /*Folder相关ResponseCode状态码*/
    public static final int FOLDER_CREATE_FAIL = 500;
    public static final int FOLDER_EXISTS = 409;
    public static final int FOLDER_CREATE_SUCCESS = 209;
    public static final int FOLDER_NULL = 408;
    public static final int DELETE_FOLDER_FAIL = 407;
    public static final int DELETE_FOLDER_SUCCESS = 207;
    public static final int DONT_EXISTS_FOLDER = 406;


    /*Note相关ResponseCode状态码*/
    public static final int NOTE_RECORD_FAIL = 501;
    public static final int NOTE_UPDATE_FAIL = 502;
    public static final int NOTE_RECORD_SUCCESS = 200;
    public static final int DONT_EXISTS_NOTE = 410;
    public static final int REMOVE_NOTE_SUCCESS = 210;
    public static final int UPDATE_NOTE_SUCCESS = 211;
    public static final int NOTE_SEARCH_FAIL = 411;
    public static final int NOTE_SEARCH_SUCCESS = 212;


    /*分享相关ResponseCode状态码 范围：1001-1050*/
    public static final int SHARE_FAILED = 1001;
    public static final int DELETE_SHARE_FAILED = 1002;
    public static final int CHANGE_SHARE_STATUS_SUCCESS = 1003;
    public static final int NO_SHARE_RECORD = 1004;
    public static final int DELETE_SUCCESS = 1005;
    public static final int SHARE_SUCCESS = 1006;

}
